set(PCL_INCLUDE_DIRS /usr/include/pcl-1.8)  #指定pcl1.8路径


## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  pcl_conversions
  pcl_msgs
  pcl_ros
  sensor_msgs
)
project(show_pcl)
find_package(PCL REQUIRED)

add_definitions(${PCL_DEFINITIONS})
catkin_package()
include_directories(
  include 
  ${catkin_INCLUDE_DIRS}
  ${PCL_LIBRARIES}
)

add_executable(pcl src/show_pcl.cpp)
target_link_libraries(pcl ${catkin_LIBRARIES}  ${PCL_LIBRARIES})